package cn.circle.system.pagemodel;

import java.util.List;
import java.util.Map;

/**
 * 功能说明：easyui使用的tree模型
 *
 */
public class TreeNode implements java.io.Serializable {
	
	private static final long serialVersionUID = -2922638457825553883L;
	private Long id;
	private Long pid;
	/** 树节点名称 */
	private String name;
	private Short type;
	private String winId;
	private String winClass;
	private String shortcutIconClass;
	private Integer showOrder;
	private String overImg;
	private Byte status;
	/** 前面的小图标样式 */
	private String iconCls;
	/** 是否勾选状态 */
	private Boolean checked;
	/** 其他参数 */
	private Map<String, Object> attributes;
	/** 子节点 */
	private List<TreeNode> children;
	/** 是否展开(open,closed) */
	private String state = "open";
	/** 是否能够选择 */
	private Boolean canChk;
	private String img;
	private String text;
	
	private String url;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
		this.text = name;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public Boolean getCanChk() {
		return canChk;
	}

	public void setCanChk(Boolean canChk) {
		this.canChk = canChk;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public String getWinId() {
		return winId;
	}

	public void setWinId(String winId) {
		this.winId = winId;
	}

	public String getWinClass() {
		return winClass;
	}

	public void setWinClass(String winClass) {
		this.winClass = winClass;
	}

	public String getShortcutIconClass() {
		return shortcutIconClass;
	}

	public void setShortcutIconClass(String shortcutIconClass) {
		this.shortcutIconClass = shortcutIconClass;
	}

	public Integer getShowOrder() {
		return showOrder;
	}

	public void setShowOrder(Integer showOrder) {
		this.showOrder = showOrder;
	}

	public String getOverImg() {
		return overImg;
	}

	public void setOverImg(String overImg) {
		this.overImg = overImg;
	}

	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

}
